﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern.Common
{
    public static class Kernel
    {
        public static double Epanechnikov(double arg)
        {
            if (Math.Abs(arg) > 1) return 0;
            return 3 * (1 - arg * arg) / 4;
        }
    }
}
